package br.com.fip.util;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.AnnotationConfiguration;

@SuppressWarnings("deprecation")
public class HibernateUtil {
	
private static SessionFactory sessionFactory = null;
	
	static {
		sessionFactory = new AnnotationConfiguration().configure()
				.buildSessionFactory();
	}
	
	public static SessionFactory getSessionFactory() {
		return sessionFactory;
	}

}
